package models

import (
	"time"
)

type UserCommissionDetails struct {
	ID         int       `gorm:"primary_key" json:"id"`
	UserId     int       `json:"user_id"`
	RelationId int       `json:"relation_id"`
	Relation   int       `json:"relation"`
	Proportion float64   `json:"proportion"`
	Money      float64   `json:"money"`
	Status     int       `json:"status"`
	OutTradeNo string    `json:"out_trade_no"`
	CreatedAt  time.Time `gorm:"default:0"`
	UpdatedAt  time.Time `gorm:"default:0"`
}

func (u *UserCommissionDetails) TableName() string {
	return "user_commission_details"
}
